const express = require("express");
const router = express.Router();

// 导入邮件路由处理函数对应的模块
const email_handler = require("../utils/emailHandler");

// 发送验证码邮件
router.post("/", email_handler.sendEmail);
// 发送完了验证码，输入完验证码还要验证一下是否真确
router.post("/checkcode", email_handler.checkCode);

module.exports = router;
